package weapons;

import java.util.ArrayList;

import controllers.ObjectsOnMap;


/**
 * @author 508461
 * @version 1.0
 * @created 24-mei-2012 12:47:48
 */
public class Sensor {

	private int maxHealthpointsBeforeShutdown;
	private int range;
	private int refresh_time;
	private ArrayList<ObjectsOnMap> sees;
	private boolean power;
	
	public Sensor(int maxHealthpointsBeforeShutdown, int range, int refresh_time, ArrayList<ObjectsOnMap> sees){
		this.maxHealthpointsBeforeShutdown=maxHealthpointsBeforeShutdown;
		this.range=range;
		this.refresh_time=refresh_time;
		this.sees=sees;	
	}
	
	public int getMaxHealthpointsBeforeShutdown(){
		return this.maxHealthpointsBeforeShutdown;
	}
	
	public void setmMxHealthpointsBeforeShutdown(int maxHealthpointsBeforeShutdown)
	{
		this.maxHealthpointsBeforeShutdown = maxHealthpointsBeforeShutdown;
	}
	
	public int getRange(){
		return this.range;
	}
	
	public void setRange(int range)
	{
		this.range = range;
	}
	
	public int getRefreshTime(){
		return this.refresh_time;
	}
	
	public void setRefreshTime(int refresh_time)
	{
		this.refresh_time = refresh_time;
	}
	
	public ArrayList<ObjectsOnMap> getSees(){
		return this.sees;
	}
	
	public void setSees(ArrayList<ObjectsOnMap> sees)
	{
		this.sees = sees;
	}


	public boolean isPower() {
		return power;
	}

	public void setPower(boolean power) {
		this.power = power;
	}
	

	public void finalize() throws Throwable {

	}
}